<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath(); 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>"> 
<meta charset="UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">  
<title>Insert title here</title>
<style >
input {
	color: red;
	margin-top: 2px;
	margin-bottom: 2px;
	}
</style>
<link rel="stylesheet" type="text/css" href="css/maintable.css" >
<link rel="stylesheet" type="text/css" href="css/edittable.css"  ></link>  
<link rel="stylesheet" type="text/css" href="css/validate.css"  ></link>  
<script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
</head>
<body>
	<div class ="div_title">
		<div class="div_titlename"> <img src="images/san_jiao.gif" ><span>订单商品列表</span></div>
	</div>
	<table class="main_table" >
		<tr>
			<th>商品名称</th><th>单位</th><th>单价</th><th>购买数量</th> 
		</tr>
		<c:forEach var="a" items="${ordergoods }" varStatus="st">
		<tr>
			<td>${a.goodsName }</td>
			<td>${a.goodsName }</td>
			<td>${a.price }</td>
			<td>${a.saleCount }</td>
		</tr>
		</c:forEach>
	</table>
	<div class ="div_title">
		 <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>订单详情列表</span></div>
	 </div>
	 <table class="edit_table" >
		<tr>
			<td class="td_info">订单号:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.orderNo }" /> 
			</td> 
			<td class="td_info">邮费:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.postage }" /> 
			</td>    	
		</tr>
		<tr>
			<td class="td_info">付款方式:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.payMethod }" /> 
			</td> 
			<td class="td_info">邮递方式:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.postMethod }" /> 
			</td>    	
		</tr>
		<tr>
			<td class="td_info">下单日期:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.orderDate }" /> 
			</td> 
			<td class="td_info">邮寄地址:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.address }" /> 
			</td>    	
		</tr>
		<tr>
			<td class="td_info">订单状态:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.orderState }" /> 
			</td> 
			<td class="td_info">发货日期:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.sendDate }" /> 
			</td>    	
		</tr>
		<tr>
			<td class="td_info">订单金额:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox" value="${order.amount }" /> 
			</td> 
			<td class="td_info">会员ID:</td>	
			<td class="td_input_short"> 
				<input type="text" class="txtbox"
				<c:choose>
		 			<c:when test="${order.memberId != 0}">value="${order.memberId }" </c:when>
		 			<c:otherwise>value="临时用户非会员"</c:otherwise>
	 			</c:choose>
				 /> 
			</td>  
			<tr>
	 			<td class="td_info"> </td>	
	 			<td> 
	 			<input type="button" onclick="history.go(-1);" class="form_btn" value="返回" /> 
	 			</td>
	 		</tr>  	
	 </table>
</body>
</html>